package com.team.kgc.grade.service.impl;

import com.team.kgc.grade.entity.Grade;
import com.team.kgc.grade.entity.GradeExample;
import com.team.kgc.grade.mapper.GradeMapper;
import com.team.kgc.grade.service.GradeService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service(value = "gradeService")
public class GradeServiceImpl implements GradeService {

   @Autowired(required = false)
    private GradeMapper gradeMapper;


    @Override
    public List<Grade> getAllGrade() {
        return this.gradeMapper.selectByExample(new GradeExample());
    }
}
